| Visual Basic (Declaration) | |
|---|---|
Public Overloads Function Invoke( _ ByVal method As System.Delegate, _ ByVal ParamArray args() As System.Object _ ) As System.Object | |
Parameters
- method
- A delegate to a method that takes parameters of the same number and type that are contained in the args parameter.
- args
- An array of objects to pass as arguments to the specified method. This parameter can be null if the method takes no arguments.
Return Value
An System.Object that contains the return value from the delegate being invoked, or null if the delegate has no return value.Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2